﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO.ProductionSystem;

namespace ThridGroup.ERP.ProductionSystem
{
    /// <summary>
    /// 生产废料接口
    /// </summary>
    public interface IProductionWasteOrderServices
    {
        /// <summary>
        /// 添加生产废料
        /// </summary>
        /// <param name="productionWasteOrder"></param>
        /// <returns></returns>
        Task<int> AddProductionWasteOrder(ProductionWasteOrderDTO productionWasteOrder);

        /// <summary>
        /// 删除生产废料
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task DelProductionWasteOrder(List<int> ids);

        /// <summary>
        /// 生产废料列表显示
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="wasteOrderName"></param>
        /// <returns></returns>
        Task<List<ProductionWasteOrderDTO>> ShowProductionWasteOrder(int pageIndex = 1, int pageSize = 10, string? wasteOrderName = "");

        /// <summary>
        /// 获取生产废料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ProductionWasteOrderDTO> GetProductionWasteOrder(int id);

        /// <summary>
        /// 编辑生产废料
        /// </summary>
        /// <param name="productionWasteOrder"></param>
        /// <returns></returns>
        Task<int> UpdateProductionWasteOrder(ProductionWasteOrderDTO productionWasteOrder);

    }
}
